package com.kaili.basic.service.impl;


import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.mapper.PickBoxManageMapper;
import com.kaili.basic.pojo.entity.PickBoxManage;
import com.kaili.basic.pojo.vo.PickBoxManageVO;
import com.kaili.basic.service.PickBoxManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PickBoxManageServiceImpl implements PickBoxManageService {


    @Autowired
    private PickBoxManageMapper pickBoxManageMapper;

    @Override
    public void createPickBox(PickBoxManage pickBoxManage) {
        pickBoxManageMapper.createPickBox(pickBoxManage);
    }

    @Override
    public void updatePickBox(PickBoxManage pickBoxManage) {
        pickBoxManageMapper.updatePickBox(pickBoxManage);
    }

    @Override
    public Page<PickBoxManageVO> queryPickBox(Page<PickBoxManageVO> page, PickBoxManage pickBoxManage) {
        return page.setRecords(pickBoxManageMapper.queryPickBox(page,pickBoxManage));
    }

    @Override
    public void deleteBoxById(Integer id) {
        pickBoxManageMapper.deleteBoxById(id);
    }
}
